package com.air.airbnb.modular.system.model;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 详情表
 * </p>
 *
 * @author zhihuian
 * @since 2018-12-04
 */
@TableName("airbnb_details")
public class Details extends Model<Details> {

    private static final long serialVersionUID = 1L;

    /**
     * 卧室
     */
    private Integer bedroom;
    /**
     * 床
     */
    private Integer bed;
    /**
     * 卫生间
     */
    private Integer toilet;
    /**
     * 房间id
     */
    @TableId("room_id")
    private Integer roomId;
    /**
     * 最多住人数
     */
    private Integer maxUser;


    public Integer getBedroom() {
        return bedroom;
    }

    public void setBedroom(Integer bedroom) {
        this.bedroom = bedroom;
    }

    public Integer getBed() {
        return bed;
    }

    public void setBed(Integer bed) {
        this.bed = bed;
    }

    public Integer getToilet() {
        return toilet;
    }

    public void setToilet(Integer toilet) {
        this.toilet = toilet;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Integer getMaxUser() {
        return maxUser;
    }

    public void setMaxUser(Integer maxUser) {
        this.maxUser = maxUser;
    }

    @Override
    protected Serializable pkVal() {
        return this.roomId;
    }

    @Override
    public String toString() {
        return "Details{" +
        ", bedroom=" + bedroom +
        ", bed=" + bed +
        ", toilet=" + toilet +
        ", roomId=" + roomId +
        ", maxUser=" + maxUser +
        "}";
    }
}
